<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>File Source for DomArClassParserRecordProperty_Datetime.class.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
											</head>
		<body>
						<h1>Source for file DomArClassParserRecordProperty_Datetime.class.php</h1>
<p>Documentation is available at <a href="../DomDateTime/_libs---DomDateTime---DomArClassParserRecordProperty_Datetime.class.php.html">DomArClassParserRecordProperty_Datetime.class.php</a></p>
<div class="src-code">
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line"><a name="a2"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-doc">*&nbsp;</span><span class="src-doc-coretag">@author</span><span class="src-doc">&nbsp;Oliver&nbsp;Leisalu</span></div></li>
<li><div class="src-line"><a name="a4"></a><span class="src-doc">*&nbsp;</span><span class="src-doc-coretag">@package</span><span class="src-doc">&nbsp;DomDateTime</span></div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-doc">*/</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-key">class&nbsp;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html">DomArClassParserRecordProperty_Datetime</a>&nbsp;<span class="src-key">extends&nbsp;</span><a href="../DomAr/Parser/DomArClassParserRecordProperty.html">DomArClassParserRecordProperty</a>&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a7"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a8"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">protected&nbsp;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html#var$defaultValue">$defaultValue</a><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a9"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a10"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">protected&nbsp;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html#var$null">$null</a><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a11"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a12"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">protected&nbsp;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html#var$index">$index</a><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a13"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a14"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">protected&nbsp;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html#var$dbType">$dbType</a>&nbsp;=&nbsp;<span class="src-str">'datetime'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a15"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a16"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">protected&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html#methodsetOrm">setOrm</a><span class="src-sym">(&nbsp;</span><span class="src-key">array&nbsp;</span><span class="src-sym">&amp;</span><span class="src-var">$orm&nbsp;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a17"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">defaultValue&nbsp;</span>=&nbsp;&nbsp;<span class="src-var">$orm</span><span class="src-sym">[</span><span class="src-str">'defaultValue'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a18"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">null&nbsp;</span>=&nbsp;<span class="src-sym">!</span><span class="src-var">$orm</span><span class="src-sym">[</span><span class="src-str">'notNull'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a19"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">index&nbsp;</span>=&nbsp;&nbsp;<span class="src-var">$orm</span><span class="src-sym">[</span><span class="src-str">'index'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a20"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><span class="src-id">dbType&nbsp;</span>=&nbsp;<span class="src-var">$orm</span><span class="src-sym">[</span><span class="src-str">'type'</span><span class="src-sym">]&nbsp;</span>==&nbsp;<span class="src-str">'date'&nbsp;</span>?&nbsp;<span class="src-str">'date'&nbsp;</span>:&nbsp;<span class="src-str">'datetime'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a21"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a22"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a23"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">protected&nbsp;</span><span class="src-key">function&nbsp;</span><span class="src-id">updateHandlerClassName</span><span class="src-sym">(&nbsp;</span><span class="src-id">DomArClassParser&nbsp;</span><span class="src-var">$class&nbsp;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a24"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomAr/Parser/DomArClassParserRecordProperty.html#var$handlerClassName">handlerClassName</a>&nbsp;=&nbsp;<span class="src-str">'DomArProperty_DateTime'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a25"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a26"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a27"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">protected&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html#methodupdateCreateHandlerCode">updateCreateHandlerCode</a><span class="src-sym">(&nbsp;</span><span class="src-id">DomArClassParser&nbsp;</span><span class="src-var">$class&nbsp;</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a28"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomAr/Parser/DomArClassParserRecordProperty.html#var$createHandlerCode">createHandlerCode</a>&nbsp;=&nbsp;<span class="src-str">'new&nbsp;'</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomAr/Parser/DomArClassParserRecordProperty.html#var$handlerClassName">handlerClassName</a>.<span class="src-str">'(\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomAr/Parser/DomArClassParserProperty.html#var$name">name</a>.<span class="src-str">'\',\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html#var$dbType">dbType</a>.<span class="src-str">'\',\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html#var$defaultValue">defaultValue</a>.<span class="src-str">'\','</span>.<span class="src-sym">(</span><span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html#var$null">null</a>&nbsp;?&nbsp;<span class="src-str">'true'&nbsp;</span>:&nbsp;<span class="src-str">'false'</span><span class="src-sym">)</span>.<span class="src-str">',\''</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomDateTime/DomArClassParserRecordProperty_Datetime.html#var$index">index</a>.<span class="src-str">'\')'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a29"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a30"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a31"></a><span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a32"></a><span class="src-php">?&gt;</span></div></li>
</ol></div>
</div>
	<p class="notes" id="credit">
		Documentation generated on Fri, 24 Sep 2010 21:12:10 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</body>
</html>